package main

import (
	"fmt"
	"os"
	"pm/config"
	httpService "pm/http"
	"pm/process"
	"pm/rpc"
)

func main() {
	fmt.Println("启动主进程:", os.Getpid())
	config.InitConfig("/usr/local/pm/config.json")
	go httpService.NewHttpService()
	go rpc.NewRpcServer()
	go rpc.NewRpcClient()
	process.RunProcessHttp()
}
